package com.wzx.admin.common;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author wzx
 * @version 1.0
 * @date 2023/5/1 - 12:40
 * @description 标题
 */
@Data
public class BasePojo implements Serializable {
    /**
     * 只有插入时才能填充此字段
     */
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "发布时间")
    private Date createTime;

    /**
     * 插入更新都会填充此字段
     */
    @TableField(value = "updateTime", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "最后更新时间")
    private Date updateTime;
}
